home *** CD-ROM | disk | FTP | other *** search
- * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
- * The C++ Answer Book */
- * Tony Hansen */
- * All rights reserved. */
- include <process.h>
- include <debug.h> /* DELETE */
- / stop this process with this exitcode
- oid process::exit(long exitcode)
-
- if (debug) /*DELETE*/ cerr << "process" << this << "::exit(" << exitcode << ")\n";
- if (mustrecurse())
- exit(exitcode);
-
- else
- {
- kill(exitcode);
- if (this == t_thisprocess)
- if (!contextswitch())
- schedule();
- if (debug) /*DELETE*/ cerr << "<<<< process" << this << "::exit(" << exitcode << ")\n";
- }
-
-